import request from "../utlis/request";

//登录接口
export function loginApi(data) {
  return request.post("/user/login", data);
  // return request.post("/login", data);
}
//获取用户信息接口
export function getUserInfoApi() {
  return request.get("/user/info");
}
//获取菜单接口
export function getMenuApi() {
  return request.get("/home/get");
}
//注册接口
export function registerApi(data) {
  return request.post("/user/register", data);
}
